package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      数据字典实体类
 * </desc>
 *
 * @createDate 2017/10/18
 */
@ItlTables("sys_code")
@Data
@NoArgsConstructor
public class SysCodePO implements Serializable{

    @ItlField("code_id")
    private String codeId;      //自增ID

    @ItlField("code_parent_id")
    private String codeParentId;    //父节点ID

    @ItlField("code_type")
    private String codeType;        //类型

    @ItlField("code_value")
    private String codeValue;       //值

    @ItlField("code_name")
    private String codeName;    //名称

    @ItlField("code_alias")
    private String codeAlias;   //别名

    @ItlField("code_order")
    private String codeOrder;   //排序值

    public SysCodePO(String codeType, String codeValue, String codeName) {
        this.codeType = codeType;
        this.codeValue = codeValue;
        this.codeName = codeName;
    }
}
